/**
 * @description 岗位管理配置界面
 * @author 李艳
 */
import { Tabs} from 'antd';
import React, {Component} from "react";
import ConfigUser from "./ConfigUser";
import ConfigFeatureRole from "./ConfigFeatureRole";
import ConfigDataRole from "./ConfigDataRole";

const TabPane = Tabs.TabPane;

class PositionConfigTabsView extends Component {

  handleBack = () => {
    if (this.props.setDisplay) {
      this.props.setDisplay(false)
    }
  };

  render() {
    const {positionInfo} = this.props;
    return (
      <div>
        <Tabs defaultActiveKey="1" style={{height:"100%"}}>
          <TabPane tab="配置用户" key="1">
              <ConfigUser positionInfo={positionInfo}/>
          </TabPane>
          <TabPane tab="配置功能角色" key="2">
              <ConfigFeatureRole positionId={positionInfo.id}/>
          </TabPane>
          <TabPane tab="配置数据角色" key="3">
              <ConfigDataRole positionId={positionInfo.id}/>
          </TabPane>
        </Tabs>
      </div>
    )
  }
}

export default PositionConfigTabsView
